package com.tsll.dao;

import com.tsll.entity.BorrowBook;
import com.tsll.vo.BorrowVo;
import com.tsll.vo.RebackVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity com.tsll.entity.Borrowbook
 */
public interface BorrowBookMapper {
    public List<BorrowBook> return1();//获取归还图书书单
    public List<BorrowBook> lend();//获取借出图书书单
    public List<BorrowBook> lendDetails(@Param("id") Integer id, @Param("userId") Integer userId);//获取借出审核书单
   public int updateExam(Integer id);//审核成功后更改借阅状态
   public int updateBack(RebackVo rebackVo);//审核失败后更改驳回信息
    int insertBorrowInfo(BorrowVo borrowVo);
    List<BorrowBook> selectByUserIdBorrowBooks(Integer id);
    int updateStatus(@Param("userId") Integer userId,@Param("bookId") Integer bookId);


}




